namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class ReadLogMap : ClassMap<ReadLogDataModel>
    {
        #region Constructors and Destructors

        public ReadLogMap()
        {
            this.Table("ReadLog");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");

            Map(x => x.ForumTopicId).Column("TopicID");
            this.Map(x => x.UserID).Not.Nullable().Column("UserID");
            this.Map(x => x.LogTime).Not.Nullable().Column("LogTime");
        }

        #endregion
    }
}